package com.ruoyi.system.api;


import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.domain.SchoolRole;
import com.ruoyi.system.api.factory.RemoteSchoolRoleFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "remoteSchoolRoleService",value = ServiceNameConstants.SYSTEM_SERVICE,fallbackFactory = RemoteSchoolRoleFallbackFactory.class)
public interface RemoteSchoolRoleService {


    @GetMapping(value = "/schoolRole/schoolRole/innerInfo")
    public AjaxResult getInnerInfo(@RequestParam("id") Long id, @RequestHeader(SecurityConstants.FROM_SOURCE)String source);


    @GetMapping("/schoolRole/schoolRole/getPersonal/inner")
    public AjaxResult getPersonalInner(@RequestHeader(SecurityConstants.FROM_SOURCE)String source);


    @GetMapping("/schoolRole/schoolRole/inner/getPersonalSchoolRole")
    public R<SchoolRole> getPersonalSchoolRole(@RequestParam("userId")Long userId,@RequestHeader(SecurityConstants.FROM_SOURCE)String source);


}
